package magicbattle.game;

import magicbattle.game.character.CharacterClass.CharacterClasses;

public class Game {
	
	private Player[] player;
	private int time;	
	
	public Game() {
		super();
	}
	
	public Game(Player[] player) {
		super();
		this.player = player;
	}

	public Player[] getPlayer() {
		return player;
	}
	
	public Player getPlayerById(int id) {
		if(player.length >= id) {
			return player[id];
		}		
		else {
			System.out.println("Failed to load user by ID!");
			return new Player("dummy", CharacterClasses.MAGE);
		}
	}

	public void setPlayer(Player[] player) {
		this.player = player;
	}

}
